Don't warn when G_MAXLONG is passed as length.
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 Aug 2005 04:25:28 +0000 (04:25 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 27 Aug 2005 04:25:28 +0000 (04:25 +0000)
2005-08-27  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
when G_MAXLONG is passed as length.

ChangeLog
ChangeLog.pre-2-10
gdk/x11/gdkproperty-x11.c

index c872f2649d17fd3edaa72f6a696428acea297998..ee6a14a7b20b5a843a7c84185937292bd0386231 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
+       when G_MAXLONG is passed as length.  
+
 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
index c872f2649d17fd3edaa72f6a696428acea297998..ee6a14a7b20b5a843a7c84185937292bd0386231 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
+       when G_MAXLONG is passed as length.  
+
 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
index e1f5d77f0d5c85b98fbdb62e7f685811568d796e..8edafaa57e8551c165386cb0b8691edc19388be9 100644 (file)
@@ -530,11 +530,8 @@ gdk_property_get (GdkWindow   *window,
    */
   get_length = length + 3;
   if (get_length > G_MAXLONG)
-    {
-      g_warning ("gdk_property_get(): length value has wrapped in calculation "
-                "(did you pass G_MAXLONG?)");
-      get_length = G_MAXLONG;
-    }
+    get_length = G_MAXLONG;
+
   /* To fail, either the user passed 0 or G_MAXULONG */
   get_length = get_length / 4;
   if (get_length == 0)